<template>
<view class="">
	<u-navbar :custom-back="back" title="设置" :border-bottom="true"></u-navbar>
	<u-cell-group>
		<u-cell-item title="个人信息" @click="toInfo"></u-cell-item>
		<u-cell-item title="安全设置" @click="toSecurity"></u-cell-item>
	</u-cell-group>
	<u-cell-group>
		<u-cell-item title="关于小知" :arrow="true" @click="toAbout"></u-cell-item>
	</u-cell-group>
	<view class="block padding margin-top-lg">
		<button class="cu-btn block bg-gradual-red shadow lg" @click="logout">退出</button>
	</view>
</view>
</template>

<script>
export default{
	data(){
		return{
			
		}
	},
	methods:{
		toInfo(){
			uni.navigateTo({
				url:'./info'
			})
		},
		toSecurity(){
			uni.navigateTo({
				url:'./security'
			})
		},
		toAbout(){
			uni.navigateTo({
				url:'./about'
			})
		},
		back(){
			uni.switchTab({
				url:"./user"
			})
		},
		logout(){
			uni.navigateTo({
				url:"../login/login"
			})
		},
	}
}
</script>

<style lang="scss" scoped>
page{
	background-color: #fff;
}
</style>
